<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>忘记密码</title>
</head>
<body>

<h2>忘记密码</h2>

<form th:action="@{/forgotPassword}" method="post">
    <div>
        <label for="username">用户名：</label>
        <input type="text" id="username" name="username" required>
    </div>
    <div>
        <label for="email">邮箱：</label>
        <input type="email" id="email" name="email" required>
    </div>
    <div>
        <label for="newPassword">新密码：</label>
        <input type="password" id="newPassword" name="newPassword" required>
    </div>
    <button type="submit">提交</button>
</form>

<p th:if="${msg}" th:text="${msg}" style="color: red;"></p>

</body>
</html>
